package com.imis.module.system.model.ro;

import com.alibaba.fastjson.JSONObject;
import com.imis.base.constant.ValidationMessageConstant;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.validation.constraints.NotEmpty;
import java.io.Serializable;

/**
 *
 * 定时任务 RO
 *
 * @author XinLau
 * @since 2020-06-15
*/
@Data
@EqualsAndHashCode(callSuper = false)
@ApiModel(value="定时任务添加对象", description="定时任务")
public class SysQuartzJobAddRO implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 任务名称
     */
    @ApiModelProperty(value = "任务名称")
    @NotEmpty(message = ValidationMessageConstant.EMPTY_ERR)
    private String jobName;
    /**
     * 任务分组
     */
    @ApiModelProperty(value = "任务分组")
    @NotEmpty(message = ValidationMessageConstant.EMPTY_ERR)
    private String jobGroup;
    /**
     * 定时任务执行类类名
     */
    @ApiModelProperty(value = "定时任务执行类类名")
    @NotEmpty(message = ValidationMessageConstant.EMPTY_ERR)
    private String jobClassName;
    /**
     * cron表达式
     */
    @ApiModelProperty(value = "cron表达式")
    @NotEmpty(message = ValidationMessageConstant.EMPTY_ERR)
    private String cronExpression;
    /**
     * 定时任务参数
     */
    @ApiModelProperty(value = "定时任务参数")
    private JSONObject jobDataMap;
    /**
     * 描述
     */
    @ApiModelProperty(value = "描述")
    private String description;
}
